package com.szrt.ms.entity;

import java.util.Arrays;

public class StudentEntity {
	
	/**
	 * 学生的姓名
	 */
	private String name;
	
	/**
	 * 年龄
	 */
	private int age;
	
	/**
	 * 性别
	 */
	private char sex;
	
	/**
	 * 分数
	 */
	private double score;
	
	/**
	 * 城市
	 */
	private String city;
	
	/**
	 * 爱好
	 */
	private String[] hobbies;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public char getSex() {
		return sex;
	}
	public void setSex(char sex) {
		this.sex = sex;
	}
	public double getScore() {
		return score;
	}
	public void setScore(double score) {
		this.score = score;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String[] getHobbies() {
		return hobbies;
	}
	public void setHobbies(String[] hobbies) {
		this.hobbies = hobbies;
	}
	public StudentEntity(String name, int age, char sex, double score, String city, String[] hobbies) {
		super();
		this.name = name;
		this.age = age;
		this.sex = sex;
		this.score = score;
		this.city = city;
		this.hobbies = hobbies;
	}
	public StudentEntity() {
		super();
	}
	@Override
	public String toString() {
		return "StudentEntity [name=" + name + ", age=" + age + ", sex=" + sex + ", score=" + score + ", city=" + city
				+ ", hobbies=" + Arrays.toString(hobbies) + "]";
	}
	
	
	
}
